<template>
<div> 
   测试数据精度<span>{{amountBig('+',a,0.0145,4)}}</span>
    b的值为:{{b}}
    测试方法是否可以直接显示在页面上:{{test()}}
</div>
</template>

<script>
   export default {
        name:  'Bigex',
        data(){
          return {
          a:'0.02',
        
          }
        },
        mounted(){
            // this.a=parseFloat(this.a);
            // console.log('a的值为',typeof this.a);
        },
        methods:{
          test(){
            return "可以显示";
          }
        },
        computed:{
      b(){
        return parseFloat(this.a);
      }
        },
        components: {},
        
   }
</script>

<style scoped>

</style>